package com.ruoyi.performance.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.performance.mapper.TbMatchmakerPerformanceMapper;
import com.ruoyi.performance.domain.TbMatchmakerPerformance;
import com.ruoyi.performance.service.ITbMatchmakerPerformanceService;

/**
 * 红娘业绩Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-07-31
 */
@Service
public class TbMatchmakerPerformanceServiceImpl implements ITbMatchmakerPerformanceService 
{
    @Autowired
    private TbMatchmakerPerformanceMapper tbMatchmakerPerformanceMapper;

    /**
     * 查询红娘业绩
     * 
     * @param performanceId 红娘业绩主键
     * @return 红娘业绩
     */
    @Override
    public TbMatchmakerPerformance selectTbMatchmakerPerformanceByPerformanceId(Long performanceId)
    {
        return tbMatchmakerPerformanceMapper.selectTbMatchmakerPerformanceByPerformanceId(performanceId);
    }

    /**
     * 查询红娘业绩列表
     * 
     * @param tbMatchmakerPerformance 红娘业绩
     * @return 红娘业绩
     */
    @Override
    public List<TbMatchmakerPerformance> selectTbMatchmakerPerformanceList(TbMatchmakerPerformance tbMatchmakerPerformance)
    {
        return tbMatchmakerPerformanceMapper.selectTbMatchmakerPerformanceList(tbMatchmakerPerformance);
    }

    /**
     * 新增红娘业绩
     * 
     * @param tbMatchmakerPerformance 红娘业绩
     * @return 结果
     */
    @Override
    public int insertTbMatchmakerPerformance(TbMatchmakerPerformance tbMatchmakerPerformance)
    {
        return tbMatchmakerPerformanceMapper.insertTbMatchmakerPerformance(tbMatchmakerPerformance);
    }

    /**
     * 修改红娘业绩
     * 
     * @param tbMatchmakerPerformance 红娘业绩
     * @return 结果
     */
    @Override
    public int updateTbMatchmakerPerformance(TbMatchmakerPerformance tbMatchmakerPerformance)
    {
        return tbMatchmakerPerformanceMapper.updateTbMatchmakerPerformance(tbMatchmakerPerformance);
    }

    /**
     * 批量删除红娘业绩
     * 
     * @param performanceIds 需要删除的红娘业绩主键
     * @return 结果
     */
    @Override
    public int deleteTbMatchmakerPerformanceByPerformanceIds(Long[] performanceIds)
    {
        return tbMatchmakerPerformanceMapper.deleteTbMatchmakerPerformanceByPerformanceIds(performanceIds);
    }

    /**
     * 删除红娘业绩信息
     * 
     * @param performanceId 红娘业绩主键
     * @return 结果
     */
    @Override
    public int deleteTbMatchmakerPerformanceByPerformanceId(Long performanceId)
    {
        return tbMatchmakerPerformanceMapper.deleteTbMatchmakerPerformanceByPerformanceId(performanceId);
    }
}
